package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecMsgGroupEmpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecMsgGroupEmpExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMsgGroupEmpIdIsNull() {
            addCriterion("msg_group_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdIsNotNull() {
            addCriterion("msg_group_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdEqualTo(Integer value) {
            addCriterion("msg_group_emp_id =", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdNotEqualTo(Integer value) {
            addCriterion("msg_group_emp_id <>", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdGreaterThan(Integer value) {
            addCriterion("msg_group_emp_id >", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_id >=", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdLessThan(Integer value) {
            addCriterion("msg_group_emp_id <", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_id <=", value, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdIn(List<Integer> values) {
            addCriterion("msg_group_emp_id in", values, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdNotIn(List<Integer> values) {
            addCriterion("msg_group_emp_id not in", values, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_id between", value1, value2, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_id not between", value1, value2, "msgGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdIsNull() {
            addCriterion("msg_group_emp_group_id is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdIsNotNull() {
            addCriterion("msg_group_emp_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdEqualTo(Integer value) {
            addCriterion("msg_group_emp_group_id =", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdNotEqualTo(Integer value) {
            addCriterion("msg_group_emp_group_id <>", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdGreaterThan(Integer value) {
            addCriterion("msg_group_emp_group_id >", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_group_id >=", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdLessThan(Integer value) {
            addCriterion("msg_group_emp_group_id <", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_group_id <=", value, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdIn(List<Integer> values) {
            addCriterion("msg_group_emp_group_id in", values, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdNotIn(List<Integer> values) {
            addCriterion("msg_group_emp_group_id not in", values, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_group_id between", value1, value2, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_group_id not between", value1, value2, "msgGroupEmpGroupId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdIsNull() {
            addCriterion("msg_group_emp_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdIsNotNull() {
            addCriterion("msg_group_emp_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdEqualTo(Integer value) {
            addCriterion("msg_group_emp_emp_id =", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdNotEqualTo(Integer value) {
            addCriterion("msg_group_emp_emp_id <>", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdGreaterThan(Integer value) {
            addCriterion("msg_group_emp_emp_id >", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_emp_id >=", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdLessThan(Integer value) {
            addCriterion("msg_group_emp_emp_id <", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("msg_group_emp_emp_id <=", value, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdIn(List<Integer> values) {
            addCriterion("msg_group_emp_emp_id in", values, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdNotIn(List<Integer> values) {
            addCriterion("msg_group_emp_emp_id not in", values, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_emp_id between", value1, value2, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("msg_group_emp_emp_id not between", value1, value2, "msgGroupEmpEmpId");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1IsNull() {
            addCriterion("msg_group_emp_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1IsNotNull() {
            addCriterion("msg_group_emp_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1EqualTo(String value) {
            addCriterion("msg_group_emp_bak1 =", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1NotEqualTo(String value) {
            addCriterion("msg_group_emp_bak1 <>", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1GreaterThan(String value) {
            addCriterion("msg_group_emp_bak1 >", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1GreaterThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak1 >=", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1LessThan(String value) {
            addCriterion("msg_group_emp_bak1 <", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1LessThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak1 <=", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1Like(String value) {
            addCriterion("msg_group_emp_bak1 like", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1NotLike(String value) {
            addCriterion("msg_group_emp_bak1 not like", value, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1In(List<String> values) {
            addCriterion("msg_group_emp_bak1 in", values, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1NotIn(List<String> values) {
            addCriterion("msg_group_emp_bak1 not in", values, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1Between(String value1, String value2) {
            addCriterion("msg_group_emp_bak1 between", value1, value2, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak1NotBetween(String value1, String value2) {
            addCriterion("msg_group_emp_bak1 not between", value1, value2, "msgGroupEmpBak1");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2IsNull() {
            addCriterion("msg_group_emp_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2IsNotNull() {
            addCriterion("msg_group_emp_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2EqualTo(String value) {
            addCriterion("msg_group_emp_bak2 =", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2NotEqualTo(String value) {
            addCriterion("msg_group_emp_bak2 <>", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2GreaterThan(String value) {
            addCriterion("msg_group_emp_bak2 >", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2GreaterThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak2 >=", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2LessThan(String value) {
            addCriterion("msg_group_emp_bak2 <", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2LessThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak2 <=", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2Like(String value) {
            addCriterion("msg_group_emp_bak2 like", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2NotLike(String value) {
            addCriterion("msg_group_emp_bak2 not like", value, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2In(List<String> values) {
            addCriterion("msg_group_emp_bak2 in", values, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2NotIn(List<String> values) {
            addCriterion("msg_group_emp_bak2 not in", values, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2Between(String value1, String value2) {
            addCriterion("msg_group_emp_bak2 between", value1, value2, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak2NotBetween(String value1, String value2) {
            addCriterion("msg_group_emp_bak2 not between", value1, value2, "msgGroupEmpBak2");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3IsNull() {
            addCriterion("msg_group_emp_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3IsNotNull() {
            addCriterion("msg_group_emp_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3EqualTo(String value) {
            addCriterion("msg_group_emp_bak3 =", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3NotEqualTo(String value) {
            addCriterion("msg_group_emp_bak3 <>", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3GreaterThan(String value) {
            addCriterion("msg_group_emp_bak3 >", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3GreaterThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak3 >=", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3LessThan(String value) {
            addCriterion("msg_group_emp_bak3 <", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3LessThanOrEqualTo(String value) {
            addCriterion("msg_group_emp_bak3 <=", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3Like(String value) {
            addCriterion("msg_group_emp_bak3 like", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3NotLike(String value) {
            addCriterion("msg_group_emp_bak3 not like", value, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3In(List<String> values) {
            addCriterion("msg_group_emp_bak3 in", values, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3NotIn(List<String> values) {
            addCriterion("msg_group_emp_bak3 not in", values, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3Between(String value1, String value2) {
            addCriterion("msg_group_emp_bak3 between", value1, value2, "msgGroupEmpBak3");
            return (Criteria) this;
        }

        public Criteria andMsgGroupEmpBak3NotBetween(String value1, String value2) {
            addCriterion("msg_group_emp_bak3 not between", value1, value2, "msgGroupEmpBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}